<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
	function getActiveLink()
	{
		$CI =& get_instance();
		
		$controller = $CI->uri->segment(1,0);      // controller
		$method 	= $CI->uri->segment(2,0);      // method
		
		$menuArr['user']					=	0;
		$menuArr['user/changepass']			=	0;
		$menuArr['user/changeprofile']		=	0;
		
		
		$menuArr['setting']						=	2;
		$menuArr['user_management']	=	2;
		$menuArr['user_management']	=	2;
		$menuArr['member']						=	12;
		$menuArr['newsletter_user']				=	2;
		
		
		
		$menuArr['setting/global_setting']		=	3;
		$menuArr['setting/email_setting']		=	3;
		$menuArr['setting/email_setting_addedit']		=	3;
		$menuArr['game']		=	3;
		$menuArr['content']		=	3;
		$menuArr['gamevariant']		=	3;
		$menuArr['team']		=	3;
		$menuArr['player']		=	3;
		
		
		
		
		
		if(!empty($menuArr[$controller.'/'.$method]))
			return $menuArr[$controller.'/'.$method];
		elseif(!empty($menuArr[$controller])) 
			return $menuArr[$controller];
		else
			return 0;			
	}
	
	